package one;

/**
 * 一个需要被JMX管理的类， 要管理该类，该类必须实现一个MXBean
 *
 */
public class Hello implements HelloMXBean {
	
	private String name;
	
	public void sayHello(){
		System.out.println("hello "+name);
	}
	
	public void sayHello(String whoName){
		System.out.println("hello "+whoName);
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	

}
